define(["jquery"],
        function($) {

            controller.first_page_pagebeforecreate = function(e, ui) {
                var page = $(this);

            };

            controller.first_page_pageinit = function(e, ui) {
                var page = $(this);

            };

            controller.first_page_pageshow = function(e, ui) {
                var page = $(this).find("#first_page.ui-page-active");
                if (page.length == 1) {

                }
            };

            $(document).on("pagebeforecreate", "#first-page", controller.first_page_pagebeforecreate);
            $(document).on("pagecreate", "#first-page", controller.first_page_pageinit);
            $(document).on("pagecontainershow", controller.first_page_pageshow);


            return controller;
        });